﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Hero
    {
        private string _heroName { get; set; }
        private string _heroInfo { get; set; }
        private int _attack { get; set; }
        private int _defense { get; set; }
        private int _speed { get; set; }
        private string _nickName { get; set; }

        public Hero() {
            Console.WriteLine("H父类构造");
        }
        public Hero(string heroName,string heroInfo,int attack,int defense,int speed,string nickName) {
            this._heroName = heroName;
            this._attack = attack;
            this._defense = defense;
            this._heroInfo = heroInfo;
            this._speed = speed;
            this._nickName = nickName;
        }
        public void hello() {
            Console.WriteLine("我是英雄{0},{1},我的昵称是{2},攻击力{3}，防御力{4}，速度{5}",this._heroName,this._heroInfo,this._nickName,this._attack,this._attack,this._defense,this._speed);
        }
    }
}
